package com.wolfeyes.framework.shiro;

import org.apache.shiro.authc.AuthenticationToken;

import lombok.AllArgsConstructor;

/**
* @see Talk is cheap, Show me the code. -- Linus Torvalds
* @title 实现Shiro框架的AuthenticationToken身份验证抽象接口的类JwtToken
* @author yanyljava
* @create 2022-01-14 21:25
*/
@AllArgsConstructor
public class JwtToken implements AuthenticationToken {

	private String token;

	/*
	public JwtToken(String token){
		this.token = token;
	}*/

	@Override
	public Object getPrincipal() {
		return token;
	}

	@Override
	public Object getCredentials() {
		return token;
	}
	
}

